package com.yipinhouse.backstage.client;
import com.yipinhouse.backstage.client.param.UploadContractAttachmentWebParam;
import com.yipinhouse.backstage.client.param.UploadContractWebParam;
import com.yipinhouse.common.result.Result;
import com.yipinhouse.signing.client.param.UploadContractAttachmentParam;
import com.yipinhouse.signing.client.param.UploadContractParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "contractManageBackClient",name="backstage",path = "backstage")
public interface ContractManageWebClient {

    /**
     * 上传合同信息
     * @param param
     * @return
     */
    @PostMapping("/uploadContract")
    Result uploadContract(@RequestBody UploadContractWebParam param);

    /**
     * 上传合同附件
     * @param param
     * @return
     * @throws Exception
     */
    @PostMapping("/uploadContractAttachment")
    Result uploadContractAttachment(UploadContractAttachmentWebParam param) throws Exception;
}
